package com.totem.base.enums;

import lombok.Getter;

import java.util.Objects;

@Getter
public enum SubscribeNameEnum {
    SUBSCRIBE_1("SUBSCRIBE_1", "1天认购包"),
    SUBSCRIBE_7("SUBSCRIBE_7", "7天认购包"),
    SUBSCRIBE_15("SUBSCRIBE_15", "15天认购包"),
    SUBSCRIBE_30("SUBSCRIBE_30", "30天认购包"),
    SUBSCRIBE_DALENT("SUBSCRIBE_DALENT", "游戏达人认购包"),
    SUBSCRIBE_KING("SUBSCRIBE_KING", "游戏王者特殊认购包"),
    SUBSCRIBE_SUPREME("SUBSCRIBE_SUPREME", "游戏至尊特殊认购包"),
    SUBSCRIBE_LOWEST("SUBSCRIBE_LOWEST", "认购最低消耗USDT"),
    SUBSCRIBE_SHOW_SPECIAL("SUBSCRIBE_SHOW_SPECIAL", "特殊认购包显示");

    private final String code;
    private final String cn;

    SubscribeNameEnum(String code, String cn){
        this.code = code;
        this.cn = cn;
    }

    public static SubscribeNameEnum byCode(String code) {
        for (SubscribeNameEnum e: SubscribeNameEnum.values()) {
            if (e.code.equalsIgnoreCase(code)) {
                return e;
            }
        }
        return null;
    }
}
